package com.zjh.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Auther: zjh
 * @Date: 2025/9/26 - 09 - 26 - 8:15
 * @Description: com.zjh.controller
 * @version: 1.0
 */
@RestController
public class DemoController {
    @GetMapping("/admin")
    public String admin(){ //ADMIN 角色可以访问
        return "hello admin";
    }
    @GetMapping("/user")
    public String user(){ //USER 角色可以访问
        return "hello user";
    }
    @GetMapping("/getInfo")
    public String getInfo(){ //READ_INFO 权限可以访问
        return "hello info";
    }
}
